
<?$this->load->view('admin/tools/admin-header')?>
<?$this->load->view('admin/tools/admin-menu')?>
<?$this->load->view('admin/tools/admin-gambarform')?>
<div class="wrap">
	<div id="icon-index" class="icon32"><br /></div><br>
<h3><a>Home ->Gallery -> View Album</a></h3>

<div id="dashboard-widgets-wrap">
<form id="posts-filter" action="<?=site_url('administrator/')?>" method="POST">
<div class="tablenav">
<div class="alignleft">
<table width="250" align="center" border="1">
		<tr style="background:">
			<td width="250" valign="middle" align="center">
			<font face="verdana" size="2" color="#FF0000">
			<div style="float:left">
				<center><a href=<?=site_url('administrator/mng_gallery')?>> Lihat album</a></center>
				<center><a><?echo $this->pagination->create_links();?></a></center>
			</div></font>
			</td>
		</tr>
		</table>
</div>
</div>
<br><br><br>
<table width="700" border="1" cellspacing="4" style="background:#E1E1E1;" border="1" style="float: auto;">
	<th scope="col" width="25%"></th>
	<th scope="col" width="25%"></th>
	<th scope="col" width="25%"></th>
	<th scope="col" width="25%"></th>

	<tbody>
	<tr valign="top" >
	<?
	$i =0; 
	$kolom=4;
	foreach ($query as $row)
		{
			$id			= $row->id;
			$nama		= $row->nama_gambar;
			$deskripsi	= $row->deskripsi;
			$url	 	= $row->url_gambar;

			if ($i >= $kolom){
			echo"</tr><tr>";
			$i=0;
			}
		$i++;
		?>
		
		<td width="25%" align="center">&nbsp;<br>
		<a href="<?=$url?>" rel="lightbox[<?=$id_album?>]"><img border="2" src="<?=$url?>" width="150" title="<?=$deskripsi;?>" height="150"></a><br><br>
		<?=$nama?><br>
		<a href="<?=site_url('administrator/edit_foto/'.$id)?>" title="rename"><img src="<?=base_url()?>css/icon/edit.png"></a>&nbsp;|&nbsp;<a href="<?=site_url('administrator/delete_foto/'.$id.'/'.$id_album)?>" title="Delete Album & All Content"><img src="<?=base_url()?>css/icon/delete.png"></a></td>
	<?}
		if($i<4){
			for($j=$i;$j<4;$j++){
			echo"<td width='25%'>&nbsp;</td>";	
			}
		}
	echo"</tr>";
	?>
	
	</tbody>
</table>

</form>
</div>
</div><!-- wrap -->


<div class="clear"></div></div><!-- wpbody-content -->
<div class="clear"></div></div><!-- wpbody -->
<div class="clear"></div></div><!-- wpcontent -->
</div><!-- wpwrap -->

<!--admin-footer-->
<?$this->load->view('admin/tools/admin-footer');?>
<!--admin-footer-->
